﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
	<Module Name="TaskNewForm" Url="$Resources:core,lists_Folder;/ProjectTasks" Path="" xmlns="http://schemas.microsoft.com/sharepoint/">
    <File Url="NewForm.aspx">
      <AllUsersWebPart WebPartZoneID="Main" WebPartOrder="2">
        <![CDATA[
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
	<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
	<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
	<Title>Content Editor Web Part</Title>
	<FrameType>Default</FrameType>
	<Description>Use for formatted text, tables, and images.</Description>
	<IsIncluded>true</IsIncluded>
	<PartOrder>2</PartOrder>
	<FrameState>Normal</FrameState>
	<Height />
	<Width />
	<AllowRemove>true</AllowRemove>
	<AllowZoneChange>true</AllowZoneChange>
	<AllowMinimize>true</AllowMinimize>
	<AllowConnect>true</AllowConnect>
	<AllowEdit>true</AllowEdit>
	<AllowHide>true</AllowHide>
	<IsVisible>true</IsVisible>
	<DetailLink />
	<HelpLink />
	<HelpMode>Modeless</HelpMode>
	<Dir>Default</Dir>
	<PartImageSmall />
	<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
	<PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>
	<IsIncludedFilter />
	<ExportControlledProperties>true</ExportControlledProperties>
	<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
	<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">
&lt;script type=&quot;text/javascript&quot;&gt;
_spBodyOnLoadFunctionNames.push(&quot;fillDefaultValues&quot;);
function fillDefaultValues() {
	var qs = location.search.substring(1, location.search.length);
	var args = qs.split(&quot;&amp;&quot;);
	var vals = new Object();
	for (var i=0; i &lt; args.length; i++) {
    var nameVal = args[i].split(&quot;=&quot;);
    var temp = unescape(nameVal[1]).split(&apos;+&apos;);
    nameVal[1] = temp.join(&apos; &apos;);
    vals[nameVal[0]] = nameVal[1];
  }  
  setLookupFromFieldName(&quot;$Resources:proj,TSAProjProject;&quot;, vals[&quot;ProjectID&quot;]);
  setLookupFromFieldName(&quot;$Resources:proj,TSALinkFieldDispMilestone;&quot;, vals[&quot;MilestoneID&quot;]);
}
function setLookupFromFieldName(fieldName, value) {
  if (value == undefined) return;
  var theSelect = getTagFromIdentifierAndTitle(&quot;select&quot;,&quot;Lookup&quot;,fieldName);
  if (theSelect == null) {
    var theInput = getTagFromIdentifierAndTitle(&quot;input&quot;,&quot;&quot;,fieldName);
    ShowDropdown(theInput.id);
    var opt=document.getElementById(theInput.opt);
    setSelectedOption(opt, value);
    OptLoseFocus(opt);
  } else {
    setSelectedOption(theSelect, value);
  }
}
function setSelectedOption(select, value) {
  var opts = select.options;
  var l = opts.length;
  if (select == null) return;
  for (var i=0; i &lt; l; i++) {
    if (opts[i].value == value) {
      select.selectedIndex = i;
      return true;
    }
  }
  return false;
}
function getTagFromIdentifierAndTitle(tagName, identifier, title) {
  var len = identifier.length;
  var tags = document.getElementsByTagName(tagName);
  for (var i=0; i &lt; tags.length; i++) {
    var tempString = tags[i].id;
    if (tags[i].title == title &amp;&amp; (identifier == &quot;&quot; || tempString.indexOf(identifier) == tempString.length - len)) {
      return tags[i];
    }
  }
  return null;
}
&lt;/script&gt;
</Content>
	<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
	<ID>g_242c61d6_db43_4421_95f6_79c188f67110</ID>
</WebPart>
        ]]>
      </AllUsersWebPart>
    </File>
  </Module>
</Elements>